import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
// import TIM from './common/static/tim-wx-sdk'
// import COS from './common/static/cos-wx-sdk-v5'
// Vue.prototype.TIM = TIM
// uni.$TUIKit = TIM.create({
// 	SDKAppID: 1400600646 // 接入时需要将0替换为您的即时通信 IM 应用的 SDKAppID
// });
// uni.$TUIKit.setLogLevel(0);
// // 注册 COS SDK 插件
// uni.$TUIKit.registerPlugin({
// 	'cos-wx-sdk': COS
// });
Vue.use(uView);
Vue.config.productionTip = false
import {
	imgUrl
} from './config/config.js'
import cacheFunc from './utils/cache.js'
Vue.prototype.configImgUrl = imgUrl
Vue.prototype.cache = cacheFunc
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)
App.mpType = 'app'
const app = new Vue({
	...App
})
// 这里需要写在最后，是为了等Vue创建对象完成，引入"app"对象(也即页面的"this"实例)
import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app)
// http接口API集中管理引入部分
import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app)
app.$mount()
